import productData from "../product/productData";

let page = {
  listPage: {
    total: 0,
    pageNum: 1,
    pageSize: 40,
    options: [40, 60, 80, 120],
  }
}

let data = {
  list: [],
  importRecordList: [],
  profitRatios: [100, 110, 120, 130, 135, 140,145,150,155,165,170,175,180,185,190,200],
}

let params = {
  searchParam: {
    categories: [],
    from: null,
    state: 3,
    tag: null,
    auditStartTime: null,
    auditEndTime: null,
    importState: -1, //1：未导入 2：导入中 3：已导入 4：导入失败
    stationBanned: null,
    hasBanned: false, //导入阶段只查询未屏蔽的采集产品
    isAuditable: true,
    author: "",
    shopId: "",
    pCode: "",
  },
  importParam: {
    ids: [],
    profitRatio: 100,
    categories: [],
  },
  importRecordParam: {
    collectionId: "",
  },
  viewParam: {
    id: "",
    createTime: 0,
    from: "",
    author: "",
    sourceUrl: "",
    otherSourceUrls: [],
    categories: [],
    pCode: "",
    title: "",
    titleEn: "",
    weight: null,
    priceUnit: "",
    // hasSizeTable: false,
    sizeTable: [],
    prices: [],
    shippingFee: 0,
    mainImgs: [],
    colors: [],
    attrs: [],
    productImgs: [],
    tags: [],
    state: 0,
    auditInfo: {
      auditTime: null,
      employeeId: "",
      employeeName: "",
      desc: "",
    },
    hasBanned: false,
  }
}

let status = {
  profitRatioModal: {
    isShow: false,
  },
  importRecordListModal: {
    isShow: false,
  },
  viewModal: {
    isShow: false,
    tagList: [],
    defaultTagList: productData.dict.tagList,
    brandList: [],
    defaultBrandList: productData.dict.brands,
  }
}

export default {
  tPage: page,
  tData: data,
  tParam: params,
  tStatus: status,
}
